package day20.pack3;

import lombok.SneakyThrows;

public class Printer {
    @SneakyThrows
    public void a() {
        System.out.println(Thread.currentThread().getId() + "开始执行A方法");
        Thread.yield();// Thread.sleep(1);
        System.out.println(Thread.currentThread().getId() + "结束执行A方法");
    }
}
